#include "stdafx.h"
#include "SDCardTest.h"
#include "TestItemInterface.h"
#include "TestDlg.h"


// Run test
// Return: Test result, see definition of TEST_RESULT_ENUM
TEST_RESULT_ENUM  TestItemRun()
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());

	CTestDlg  dlg;
	return (TEST_RESULT_ENUM)dlg.DoModal();
}


// Get the title of the test item
// szTitle (out) - Output the test item's title.
void TestItemGetTitle(CString& szTitle)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());

	if (!szTitle.LoadStringW(IDS_TEST_TITLE))
	{
		szTitle = _T("Unknown");
	}
}


// Process keyboard messages
// The keyboard messages were hooked by the HiMmiTest.exe, 
// the test item's dll can implement this interface to get keyboard messages from exe,
// and if the dll don't care the keyboard message, needn't implement this function.
//
//LRESULT  TestItemProcessKbdMsg( WPARAM wParam, LPARAM lParam)
//{
//    return S_OK;
//}

